﻿using System;

namespace SneakyWeasel
{
    /*

    #region SWEngine
    class SWEngine
    {
        public Form swForm { get; set; }

        private Timer pulseTimer = new Timer();
        private List<Engine.SWPlugin> plugins = new List<SWPlugin>();

        public SWEngine(Form wForm)
        {
            this.swForm = wForm;
        }

        public void LoadPlugin(SWPlugin p)
        {
            p.swEngine = this;
            plugins.Add(p);
            p.OnLoad(this);
        }

        public void Start()
        {
            Start(10);
        }

        public void Start(int pulseInterval)
        {
            foreach (SWPlugin p in plugins)
                p.OnLoad(swForm, this);

            pulseTimer.Interval = pulseInterval;
            pulseTimer.Enabled = true;
            pulseTimer.Tick += new EventHandler(this.Pulse);
            pulseTimer.Start();
        }

        public void Stop()
        {
            pulseTimer.Enabled = false;
            pulseTimer.Stop();

            foreach (SWPlugin p in plugins)
                p.OnExit(swForm, this);
        }

        public void Pulse(object sender, EventArgs e)
        {
            foreach (SWPlugin p in plugins)
                p.OnPulse(swForm, this);
        }
    }
#endregion

 
*/
}